#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main() {
	long long a, b;
	while (2 == scanf("%lld%lld", &a, &b))
		printf("%lld\n", (a + 1) * a * b * (b + 1) / 4);
	return 0;
}
